package com.example.dockerdemo.bean;

/**
 * @PACKAGE_NAME: com.example.dockerdemo.bean
 * @NAME: Person
 * @description:
 * @DATE: 2024/4/29
 * @USER: fz
 **/
public class Person {

    private String name;
    private int salary;
    private int age;
    private String gender;
    private String city;

    public Person(String name, int salary, int age, String gender, String city) {
        this.name = name;
        this.salary = salary;
        this.age = age;
        this.gender = gender;
        this.city = city;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
